import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '../constant'
import IconMenuHome from '~icons/local/menu-home-color'

export default <RouteRecordRaw>{
  path: '/home',
  component: Layout,
  redirect: '/home/index',
  meta: {
    title: '工作台',
    icon: shallowRef(IconMenuHome),
    sort: 1,
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/home/index.vue'),
      name: 'Home',
      meta: {
        title: '工作台',
        icon: 'icon-dashboard',
        affix: true,
        sort: 1,
      },
      children: [

      ],
    },
    {
      path: 'myClass',
      name: 'MyClass',
      component: () => import('@/views/education/class/TeacherClassList.vue'),
      meta: {
        title: '我的班级',
        hidden: true,
      },
      children: [],
    },
    // {
    //   path: 'myPerformance',
    //   name: 'MyPerformance',
    //   component: () => import('@/views/home/myPerformance.vue'),
    //   meta: {
    //     title: '我的业绩',
    //     hidden: true,
    //   },
    //   children: [],
    // },
    {
      path: 'my-sell-record',
      name: 'MySellRecord',
      component: () => import('@/views/home/MySellRecord.vue'),
      meta: {
        title: '我的业绩',
        hidden: true,
      },
      children: [],
    },
  ],
}
